<?
   $arr_product   = getProduct($cat_id,'12');
   $arr_cate      = getCate($cat_id);
   if(isset($arr_cate[$cat_id]['cat_name'])){
      $title_cate = 'Danh mục > ' . $arr_cate[$cat_id]['cat_name'];
   }else{
      $title_cate = 'Danh mục sản phẩm';
   }
?>
<?if(count($arr_product) > 0){?>
   <div class="list-product relative">
      <div class="pro-title relative">
         <em class="left-gym"></em>
         <em class="right-gym"></em>
         <span><?=$title_cate?></span>
         <div class="main-content relative">
            <ul class="black-transparent list-pro">
               <?
               $i = 0;
               foreach($arr_product as $key=>$value){
                  $i++;
                  $pro_price = ($value['pro_price'] > 0) ? format_number($value['pro_price']) : 'Liên hệ';
                  $link = rewriteDetailProduct($value['pro_name'],$value['pro_id']);
               ?>
                  <li class="items-pro">
                     <a href="<?=$link?>">
                        <?PrintImageThumbPro($value['pro_pic'],PATH_IMG_THUMB,'',$value['pro_name'])?>
                        <p><?=$value['pro_name']?></p>
                        <div class="op-product">
                           <span class="price-pro yellow"><?=$pro_price?></span>
                           <button class="relative">Chi tiết <em class="arrow-right"></em></button>
                        </div>
                     </a>
                  </li>
                  <?if($i%3 == 0){?>
                     <div class="line-ver clear-fix"></div>
                  <?}?>
               <?}?>
               
            </ul>
         </div>
      </div>
   </div>
<?}?>



